package com.hjq.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjq.common.utils.PageUtils;
import com.hjq.mallproduct.entity.BrandEntity;
import com.hjq.mallproduct.entity.CategoryBrandRelationEntity;
import com.hjq.mallproduct.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author Hjq
 * @email 1484397309@qq.com.com
 * @date 2022-05-24 13:33:42
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryBrandRelationEntity> getcateloglistByBrandId(Long brandId);
    List<BrandEntity> getBrandlistByCatId(Long catId);

    void save(Long brandId, Long categoryId);

    void updateBrand(Long brandId, String name);

    void updareCategory(Long catId, String categoryName);
}

